﻿<%@ Page Title="" Language="C#" MasterPageFile="~/master.Master" AutoEventWireup="true" CodeBehind="KaoShengBaoMing.aspx.cs" Inherits="zjbks.KaoShengBaoMing" %>

<asp:Content ID="Content1" ContentPlaceHolderID="content" runat="server">
   
    <div class="rg_center">
        <div class="re_form"> 
            <table>
                <tr>
                    <td class="td_left">
                        <asp:Label ID="Label1" runat="server" Text="身份证号" CssClass ="label"></asp:Label>
                    </td>
                    <td class="td_right">
                        <asp:TextBox ID="id" runat="server" CssClass="textbox" ReadOnly="True"></asp:TextBox><%--<asp:DropDownList ID="DropDownList1" runat="server" DataSourceID="collage" DataTextField="collageName" DataValueField="collageName"></asp:DropDownList>--%>
                    </td>
                </tr>

                <tr>
                    <td class="td_left">
                        <asp:Label ID="Label2" runat="server" Text="生源地学校" CssClass ="label"></asp:Label>
                    </td>
                    <td class="td_right">
                        <asp:DropDownList ID="collageinfo" runat="server" CssClass="DropDownList" DataSourceID="collage" DataTextField="collageName" DataValueField="collageName" Height="37px" Width="268px"></asp:DropDownList>
                        <asp:SqlDataSource ID="collage" runat="server" ConnectionString="<%$ ConnectionStrings:zjbksConnectionString %>" SelectCommand="SELECT * FROM [CollageInfo]"></asp:SqlDataSource>
                    </td>
                </tr>

                <tr>
                    <td class="td_left">
                        <asp:Label ID="Label3" runat="server" Text="姓名" CssClass ="label"></asp:Label></td>
                    <td class="td_right">
                        <asp:TextBox ID="name" runat="server" CssClass="textbox"></asp:TextBox>
                    </td>

                </tr>

                <tr>
                    <td class="td_left" style="height: 45px">
                        <asp:Label ID="Label4" runat="server" Text="性别" CssClass ="label"></asp:Label></td>
                    <td class="td_right" style="height: 45px">
                        <asp:RadioButtonList ID="gender" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow" CssClass ="label" Enabled="False">
                            <asp:ListItem Selected="True">男</asp:ListItem>
                            <asp:ListItem>女</asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                </tr>

                <tr>
                    <td class="td_left">
                        <asp:Label ID="Label9" runat="server" Text="民族" CssClass ="label"></asp:Label></td>
                    <td class="td_right">
                        <asp:DropDownList ID="nationinfo" runat="server" CssClass="DropDownList" DataSourceID="nation" DataTextField="NationName" DataValueField="NationName"></asp:DropDownList>
                        <asp:SqlDataSource ID="nation" runat="server" ConnectionString="<%$ ConnectionStrings:zjbksConnectionString %>" SelectCommand="SELECT * FROM [NationInfo]"></asp:SqlDataSource>
                    </td>

                </tr>

                <tr>
                    <td class="td_left">
                        <asp:Label ID="Label6" runat="server" Text="报考专业" CssClass ="label"></asp:Label></td>
                    <td class="td_right">
                        <asp:DropDownList ID="subjectinfo" runat="server" CssClass="DropDownList" DataSourceID="subject" DataTextField="SubjectName" DataValueField="SubjectName"></asp:DropDownList>
                        <asp:SqlDataSource ID="subject" runat="server" ConnectionString="<%$ ConnectionStrings:zjbksConnectionString %>" SelectCommand="SELECT * FROM [SubjectInfo]"></asp:SqlDataSource>
                    </td>
                </tr>
                <tr>
                    <td class="td_left">
                        <asp:Label ID="Label7" runat="server" Text="家庭住址" CssClass ="label"></asp:Label></td>
                    <td class="td_right">
            <asp:DropDownList ID="DropDownList1" Width="100px" CssClass="textbox" runat="server" DataSourceID="SqlDataSource1" DataTextField="name" DataValueField="code" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged"></asp:DropDownList>
            <asp:DropDownList ID="DropDownList2" Width="100px" CssClass="textbox" runat="server" DataSourceID="SqlDataSource2" DataTextField="name" DataValueField="code" AutoPostBack="True" OnSelectedIndexChanged="DropDownList2_SelectedIndexChanged"></asp:DropDownList>
            <asp:DropDownList ID="DropDownList3" Width="100px" CssClass="textbox" runat="server" DataSourceID="SqlDataSource3" DataTextField="name" DataValueField="code" AutoPostBack="True"></asp:DropDownList>
                        <asp:TextBox ID="other" runat="server" Width="100px" CssClass="textbox"></asp:TextBox>
            <br />
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:zjbksConnectionString %>" SelectCommand="SELECT * FROM [province]"></asp:SqlDataSource>
            <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:zjbksConnectionString %>" SelectCommand="SELECT * FROM [city] WHERE ([provincecode] = @provincecode)">
                <SelectParameters>
                    <asp:ControlParameter ControlID="DropDownList1" Name="provincecode" PropertyName="SelectedValue" Type="String" />
                </SelectParameters>
            </asp:SqlDataSource>
            <asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:zjbksConnectionString %>" SelectCommand="SELECT * FROM [area] WHERE ([citycode] = @citycode)">
                <SelectParameters>
                    <asp:ControlParameter ControlID="DropDownList2" Name="citycode" PropertyName="SelectedValue" Type="String" />
                </SelectParameters>
            </asp:SqlDataSource>
                        </td>

                </tr>
                <tr>
                    <td class="td_left">
                        <asp:Label ID="Label8" runat="server" Text="手机号" CssClass ="label"></asp:Label></td>
                    <td class="td_right">
                        <asp:TextBox ID="phone" runat="server" CssClass="textbox"></asp:TextBox></td>
                </tr>
                <tr>
                    <td class="td_left">
                        <asp:Label ID="Label5" runat="server" Text="邮箱" CssClass ="label"></asp:Label></td>
                    <td class="td_right">
                        <asp:TextBox ID="email" runat="server" CssClass="textbox"></asp:TextBox></td>
                </tr>
                <tr>
                    <td></td>
                    <td>
                        <asp:Button ID="Button2" runat="server" Text="提交" CssClass="button" OnClick="Button2_Click" />
                        <asp:Button ID="Button3" runat="server" Text="打印信息表" CssClass="button" OnClick="Button3_Click" /></td>
                    </tr>
                </table>
        </div>
    </div>
</asp:Content>
